import { request } from '@umijs/max';

export async function OrderList(data: any) {
  return request('/order/list', {
    method: 'POST',
    data,
  });
}

export async function OrderView(data: any) {
  return request('/order/view', {
    method: 'POST',
    data,
  });
}

export async function OrderCreate(data: any) {
  return request('/order/add', {
    method: 'POST',
    data,
  });
}

export async function OrderUpdate(data: any) {
  return request('/order/update', {
    method: 'POST',
    data,
  });
}

export async function OrderDelete(data: any) {
  return request('/order/del', {
    method: 'POST',
    data,
  });
}
